import { Space, Button } from "antd";
import { FC, ReactElement } from "react";

interface IProps {
  children: ReactElement;
}

const TableTop: FC<IProps> = ({ children }) => {
  return (
    <Space style={{ display: "flex", justifyContent: "space-between" }}>
      {children}

      <Space>
        <Button>右侧按钮1</Button>
        <Button>右侧按钮2</Button>
      </Space>
    </Space>
  );
};

export default TableTop;
